import {request} from '@/network/request'

// 获取商品列表
export function goodsList(data){
    return request({
        url: '/storage/goods/list',
        method: 'get',
        params: data
    })
}
// 创建商品
export function goodsCreate(data){
    return request({
        url: '/storage/goods/create',
        method: 'post',
        data: data
    })
}
// 根据ID获取商品信息
export function goodsSearch(data){
    return request({
        url: '/storage/goods/search',
        method: 'get',
        params: data
    })
}
// 修改商品信息
export function goodsUpdate(data){
    return request({
        url: '/storage/goods/update',
        method: 'post',
        data: data
    })
}
// 获取进货单列表
export function inputListList(data){
    return request({
        url: '/storage/input-list/list',
        method: 'get',
        params: data
    })
}
// 创建进货单
export function inputListCreate(data){
    return request({
        url: '/storage/input-list/create',
        method: 'post',
        data: data
    })
}
// 删除进货单
export function inputListDelete(data){
    return request({
        url: '/storage/input-list/delete',
        method: 'get',
        params: data
    })
}
// 根据ID获取进货单信息
export function inputListSearch(data){
    return request({
        url: '/storage/input-list/search',
        method: 'get',
        params: data
    })
}
// 修改进货单信息
export function inputListUpdate(data){
    return request({
        url: '/storage/input-list/update',
        method: 'post',
        data: data
    })
}
// 进货单执行
export function inputListExecute(data){
    return request({
        url: '/storage/input-list/execute',
        method: 'get',
        params: data
    })
}
// 发货单列表
export function dispatchListList(data){
    return request({
        url: '/storage/dispatch-list/list',
        method: 'get',
        params: data
    })
}
// 修改发货单
export function dispatchListUpdate(data){
    return request({
        url: '/storage/dispatch-list/update',
        method: 'post',
        data: data
    })
}
// 物流信息创建
export function logisticsCreate(data){
    return request({
        url: '/storage/logistics/create',
        method: 'post',
        data: data
    })
}
// 物流信息列表
export function logisticsList(data){
    return request({
        url: '/storage/logistics/list',
        method: 'get',
        params: data
    })
}